package com.kayang.common.util;

import com.kayang.nadapt.util.JsonConvert;

import java.util.Map;

public class MapUtil {
    public static Map toMap(Object obj){

        String jsonStr = JsonConvert.serializeObject(obj);

        Map ret = JsonConvert.deserializeMap(jsonStr);

        return ret;

    }
}
